<?php

use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?php echo Yii::$app->language ?>">
    <head>
        <meta charset="<?php echo Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php echo Html::csrfMetaTags() ?>
        <title><?php echo Html::encode($this->title) ?></title>
        <?php $this->head() ?>
    </head>
    <body>

        <?php $this->beginBody() ?>
        <div class="wrap">

            <?php echo $this->render('header.php'); ?>

            <div class="container">

                <div class="col-md-2">
                    <?php echo $this->render('sidebar.php'); ?>
                </div>
                <div class="col-md-10">
                    <?php
                    echo
                    Breadcrumbs::widget([
                        'homeLink' => [
                            'label' => '首 页',
                            'url' => Yii::$app->homeUrl . '/admin/default'
                        ],
                        'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
                    ])
                    ?>
                    <?php echo $content ?>
                </div>

            </div>
        </div>

        <?php echo $this->render('footer.php'); ?>

        <?php $this->endBody() ?>
    </body>
</html>
<?php $this->endPage() ?>
